<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSynchRecordTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('synch_record', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('all_order_num')->default()->comment('总订单数');
            $table->integer('new_order_num')->default()->comment('新订单数');
            $table->integer('new_vip_num')->default(0)->comment('新的会员数量');
            $table->string('from_type')->nullable()->comment('数据来源');
            $table->text('message')->nullable()->comment('账号总积分');
            $table->integer('status')->default(0)->comment('状态');
            $table->integer('is_read')->default(0)->comment('是否查看');
            $table->timestamp('read_time')->nullable()->comment('查看时间');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
